package com.syqc.comlib.entity
/**
 * App配置
 */
data class AppConfig(
    val alarmFilter: Boolean,
    val mode: String?,
    val alarms: Boolean,
    var appGpsColumn: MutableList<AppGpsColumn>,
    val arrears: Boolean,
    val firstPage: String,
    val homeSet: String,
    val arrearsAuth: Boolean?,
    val mapMarker: MapMarker,
    val mapRefreshTime: String?,
    val quickSet: MutableList<String>,
    val fixCenter:Boolean?,
    val onlineNotice:Boolean?
)

/**
 * 车辆配置
 *
 * @property alarms
 * @property arrears
 * @property arrearsAuth
 * @property mapMarker
 * @property mapRefreshTime
 * @constructor Create empty Car config
 */
data class CarConfig(
    var alarms: Boolean,
    var arrears: Boolean,
    var arrearsAuth: Boolean?,
    var mapMarker: MapMarker?,
    var mapRefreshTime: String?,
    var fixCenter: Boolean?,
    val onlineNotice:Boolean?
)

/**
 * App gps column
 *
 * @property key
 * @property switch
 * @constructor Create empty App gps column
 */
data class AppGpsColumn(
    val key: String,
    var switch: Int
)

/**
 * 地图图标
 */
data class MapMarker(
    var backCarColor: String = "#2461f7",
    var backSpeedColor: String = "#EA4354",
    var colorType: Int = 1,
    var iconSize: Int = 60,
    var showPlate: Boolean = true,
    var showSpeed: Boolean = false,
    var textColor: String = "#FFFFFF",
    var textSize: Int = 14
){
    override fun toString(): String {
        return "MapMarker(backCarColor='$backCarColor', backSpeedColor='$backSpeedColor', colorType=$colorType, iconSize=$iconSize, showPlate=$showPlate, showSpeed=$showSpeed, textColor='$textColor', textSize=$textSize)"
    }
}
